# -*- coding: utf-8 -*-
'''
Created on 2013-4-10

@author: dyq
'''

import uuid,hashlib
class tool:

    @staticmethod #生成GUID
    def guid():
        return  str(uuid.uuid1()).replace("-", "")
    
    @staticmethod #生成MD5
    def Md5(strkey):
        return  hashlib.md5(strkey).hexdigest().upper()
    


                           
      
        